package cn.dada.dadarecipes.user.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class UserRegParam {
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{1,7}|^[a-zA-Z0-9]{1,14}$", message = "用户名不能超过7个汉字或14个英文字符")
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "手机号")
    private String phone;

}
